package cn.koala.key.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@ApiModel(value="借用单借用信息")
public class BorrowOrderAddressee {
    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    private Long id;

    /**
     * 借用单号
     */
    @ApiModelProperty("借用单号")
    private String orderNo;

    /**
     * 收件人
     */
    @ApiModelProperty("收件人")
    @NotNull(message="recipient参数不能为空")
    @Size(max=30,min=0,message="recipient长度超过")
    private String recipient;

    /**
     * 借用人工号
     */
    @ApiModelProperty("借用人")
    private String loanName;

    /**
     * 借用方式 1-邮递、2-自取
     */
    @ApiModelProperty("借用方式 1-邮递、2-自取")
    private Integer recipientType;

    /**
     * 收件人联系电话
     */
    @ApiModelProperty("收件人联系电话")
    @NotNull(message="receiver_call_phone参数不能为空")
    private String receiverCallPhone;

    /**
     * 收件地址
     */
    @ApiModelProperty("收件地址")
    @NotNull(message="receiverAddress 参数不能为空")
    @Size(max=70,min=0,message="receiverAddress 长度超过")
    private String receiverAddress;

    /**
     * 快递单号
     */
    @ApiModelProperty("快递单号")
    private String expressNo;

    /**
     * 主动创建时间
     */
    @ApiModelProperty("主动创建时间")
    private Date gmtCreate;

    /**
     * 被动更新时间
     */
    @ApiModelProperty("被动更新时间")
    private Date gmtModified;

    @ApiModelProperty("证件号")
    private String idNumber;

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getLoanName() {
        return loanName;
    }

    public void setLoanName(String loanName) {
        this.loanName = loanName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getRecipient() {
        return recipient;
    }

    public void setRecipient(String recipient) {
        this.recipient = recipient;
    }

    public Integer getRecipientType() {
        return recipientType;
    }

    public void setRecipientType(Integer recipientType) {
        this.recipientType = recipientType;
    }

    public String getReceiverCallPhone() {
        return receiverCallPhone;
    }

    public void setReceiverCallPhone(String receiverCallPhone) {
        this.receiverCallPhone = receiverCallPhone;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    public String getExpressNo() {
        return expressNo;
    }

    public void setExpressNo(String expressNo) {
        this.expressNo = expressNo;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}